package com.example.mardan.viewmodel;

import androidx.lifecycle.LiveData;
import androidx.lifecycle.ViewModel;

import java.util.List;

import com.example.mardan.entity.TangshiChapter;
import com.example.mardan.repository.TangShiRepository;

public class TangShiViewModel extends ViewModel {
    private TangShiRepository repository;
    private LiveData<List<TangshiChapter.ResultDTO>> tangShiListLiveData;

    public TangShiViewModel() {
        repository = new TangShiRepository();
        tangShiListLiveData = repository.getTangShiList();
    }

    public LiveData<List<TangshiChapter.ResultDTO>> getTangShiList() {
        return tangShiListLiveData;
    }
}